<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flexbox Example</title>
    <style>
        .bottom-img {
            display: flex;
            justify-content: center;
            /* 水平居中 */

            /* 垂直靠顶对齐 */
            height: 200px;
            /* 设置容器高度以便观察效果 */
            border: 1px solid black;
            /* 边框以便观察容器边界 */
            padding: 10px;
            /* 内边距以便观察效果 */
        }

        .item {
            margin: 10px;
            padding: 10px;
            background-color: lightgray;
            width: 80px;
            height: 50px;
            /* 设置子元素高度以便观察效果 */
        }
    </style>
</head>

<body>
    <div class="bottom-img">
        <div class="item">Item 1</div>
        <div class="item">Item 2</div>
        <div class="item">Item 3</div>
    </div>
</body>

</html>